cmake_minimum_required (VERSION 2.8)


include_directories (include)


add_library (test_lib_pi
                ${CMAKE_SOURCE_DIR}/src/pi.cpp
                ${CMAKE_SOURCE_DIR}/include/pi.h
                )
add_library (test_lib_host
                ${CMAKE_SOURCE_DIR}/src/Host.cpp
                ${CMAKE_SOURCE_DIR}/include/Host.h
                )


add_executable (tester  test.cpp)


target_link_libraries (tester  test_lib_pi  test_lib_host)


# Where to move things on 'install' command
install (TARGETS  tester  DESTINATION  ${CMAKE_SOURCE_DIR}/bin)